<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<pre>
			这是我的第一个gitee测试文件
		</pre>
	</body>
	我要把文件上传到李东波的gitee里
	<script type="text/javascript">
	//1.
		alert("大家好:");
		alert("我是xxx");
		
	//2.表格
		
		
	//3.
		var name = "小红帽";
		var address = "外国";
		var age = 18;
		console.log("我是" + name);
		console.log("我是" + address + "人");
		console.log("我今年" + age + "岁");
		
	//4.
		var name = "张三";
		var age = 20;
		var height = "180cm";
		var a = "今天没有下雨";
		document.write("姓名是" + name + "</br>");
		document.write("今年" + age + "岁" + "</br>");
		document.write("身高" + height + "</br>");
		document.write(a);
		
		
		
	//5. 已知x=10，y=20，交换两个变量的值并输出交换前后的值   即交换后x=20，y=10
	   var x = 10;
	   var y = 20;
	   var z;
	   z = x;
	   x = y; 
	   y = z;
	   console.log("x:",x);
	   console.log("y:",y);
		
		
	//6.已知总天数为50天，求共有几周，并剩余几天
		var day = 50;
		var week = Math.floor(50/7);
		var sday = 50%7;
		console.log("已知总天数为50天","，共有" + week + "周，并剩余" + sday + "天")
		
	
	
	
	
	
	
	
		console.log(parseInt("10"));        //10
		console.log(parseInt("10.55"));     //10
		console.log(parseInt("123.20s"));   //123
		console.log(parseInt("111ss"));     //111
		console.log(parseInt("ss111"));     //NaN
		
		console.log(parseFloat("123"));     //123
		console.log(parseFloat("10.11"));   //10.11
		console.log(parseFloat("10.11s"));  //10.11
		console.log(parseFloat("s10.11s")); //NaN
		
		console.log(Number(324));           //324
		console.log(Number('324'));         //324
		console.log(Number('324abc'));      //NaN
		console.log(Number(undefined));     //NaN
		console.log(Number(null));          //0
		console.log(Number(''));            //0
		console.log(Number(true));          //1
		console.log(Number(false));         //0
		
		console.log(String(123));        //123
		console.log(String('abc'));      //abc
		console.log(String(true));       //true
		console.log(String(undefined));  //undefined
		console.log(String(null));       //null
		
		console.log(Boolean(undefined));  //false
		console.log(Boolean(null));       //false
		console.log(Boolean(-0));         //false
		console.log(Boolean(0));          //false
		console.log(Boolean(+0));         //false
		console.log(Boolean(NaN));        //false
		console.log(Boolean(' '));        //false
		console.log(Boolean(" "));        //false
		
		
		console.log(Boolean({}));        //true
		console.log(Boolean([]));        //true
		
	
		
	</script>
</html>
